<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>美瀛商旅-机票明细表</title>
    <script type="text/javascript">
	$(function() {
		applyDate("datepicker1");
		applyDate("datepicker");

	});

	</script>
<script language="javascript">
function tabs(n)
{
var len = 4;
for (var i = 1; i <= len; i++)
{
document.getElementById('tab_a' + i).style.display = (i == n) ? 'block' : 'none';
document.getElementById('_' + i).style.display = (i == n) ? 'inline' : 'none';
}
}
function cl(n)
{
var len = 4;
for (var i = 1; i <= len; i++)
{
document.getElementById('tab_a' + i).style.display = (i == n) ? 'none' : 'none';
document.getElementById('_' + i).style.display = (i == n) ? 'none' : 'none';
}
}
function czopen(){   
            document.getElementById("check_see").style.display="block" ;}	
function czclose(){   
            document.getElementById("check_see").style.display="none" ;}	
</script>

</head>

<body>

	
	
	 <ul>
          <li class="titleonly">
          <img src="${ctxPath}/css/style/base/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;国内订单报表搜索
        </li>
    </ul>
   <ul>
  <form id="tableForm" name="tableForm" action="report.do" method="Post">
  <table width="700" border="0" cellspacing="0" cellpadding="0" class="dd">
  <tr>
    <td>订单起始时间</td>
    <td> <input name="Q_createTime_D_GE" type="text" class="inputbox120" id="datepicker1" value="${param['Q_createTime_D_GE']}" /></td>
    <td>订单截止时间：</td>
    <td><input name="Q_createTime_D_LE" type="text" class="inputbox120" id="datepicker" value="${param['Q_createTime_D_LE']}" /></td>
  </tr>
  <tr>
   <td>订单状态：</td>
    <td><select id="status" name="Q_status_L_EQ" class="inputbox130" >
						  <option value="">全部</option>
						  <option value="9">未出票申请退款</option>
						  <option value="6">订座成功等待价格确认</option>
						  <option value="7">等待座位确认</option>
					      <option value="0">订座成功等待支付</option>
					      <option value="12">订单取消</option>
					      <option value="1">支付成功等待出票</option>
					      <option value="5">出票中</option>
					      <option value="2">出票完成</option>
					      <option value="40">改签申请中</option>
					      <option value="42">改签完成</option>
					      <option value="8">退票申请中</option>
					      <option value="31">退票完成等待退款</option>
					      <option value="39">退款完成</option>
					      <option value="50">等待邮寄</option>
						 </select>
						 <script type="text/javascript">
						 document.getElementById("status").value="${param['Q_status_L_EQ']}";
						 </script> 
						 </td>
	<td>支付方式：</td>
    <td><select id="payChannel" name="Q_payChannel_S_EQ" class="inputbox130">
						  <option value="">全部</option>
						  <option value="2">快钱</option>
						  <option value="3">支付宝</option>
						  <option value="4">财付通</option>
						  <option value="5">汇付天下</option>
						  <option value="6">中国银联</option>
                          <option value="7">联动优势</option>
						 </select>
						 <script type="text/javascript">
						 document.getElementById("payChannel").value="${param['Q_payChannel_S_EQ']}";
						 </script>
						 </td>
	</tr>
	<tr>
    <td>航程类型 ：</td>
    <td><select id="orderType" name="Q_orderType_L_EQ" class="inputbox85">
						  <option value="">全部</option>
						  <option value="2">单程</option>
						  <option value="3">往返</option>
						  </select>
						  <script type="text/javascript">
						 document.getElementById("orderType").value="${param['Q_orderType_L_EQ']}";
						 </script>
						  </td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="6" style="text-align:center"><input name="Submit" type="submit" class="inputsubmit" value="查询" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      <input name="Submit2" type="submit" class="inputsubmit" value="导出" /></td>
    </tr>
</table>
</form>
 </ul>
	<ul>
	  <li class="titleonly"><img src="${ctxPath}/css/style/base/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;机票明细表
    </li>
	</ul>
	<ul>
	  <li>
	  
		    	<display:table name="bOrders" sort="external" pagesize="${bOrders.objectsPerPage}"
			    	cellpadding="0" cellspacing="0" style="width:100%" export="true" 
			    	id="bOrderItem" partialList="true" size="${bOrders.fullListSize}" requestURI="report.do">
				<display:column property="id" titleKey="序号" sortName="orderNo" sortable="true" maxLength="4"  class="tableinfo center"/> 
				<display:column property="orderNo" titleKey="订单号" sortName="orderNo" sortable="true" class="tableinfo center"/> 
				<display:column titleKey="出票时间" sortName="createTime" sortable="true" class="tableinfo center">
					<fmt:formatDate value="${bOrderItem.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
				</display:column>  
				
				<display:column titleKey="起飞时间" class="tableinfo center">
					<c:forEach var="flight" items="${bOrderItem.flights}">
							${flight.depDay}<br/>
					</c:forEach>&nbsp;
				</display:column>
				<display:column titleKey="PNR" sortName="pnr" class="tableinfo center">
				&nbsp;${bOrderItem.pnr }
				</display:column>
				<display:column titleKey="票号" class="tableinfo center">
				<c:forEach var="passenger" items="${bOrderItem.passengers}">
							${passenger.eticketNum}<br/>
				</c:forEach>&nbsp;
				</display:column>  
				<display:column titleKey="出发地<br/>目的地" class="tableinfo center">
					<c:if test="${not empty bOrderItem.flights}">
						<c:forEach var="flight" items="${bOrderItem.flights}" >
							${flight.depTime}&nbsp;${flight.dep}<br/>
							${flight.arrTime}&nbsp;${flight.arr}
						</c:forEach>
					</c:if>&nbsp;
				</display:column>
				<display:column titleKey="航班号" class="tableinfo center">
					<c:forEach var="flight" items="${bOrderItem.flights}">
							${flight.code}<br/>
					</c:forEach>&nbsp;
				</display:column>
				<display:column titleKey="人数" class="tableinfo center">
					${fn:length(bOrderItem.passengers)}&nbsp;
				</display:column>
				<display:column titleKey="保险实收款" class="tableinfo center">
				${bOrderItem.insuranceStatistics}&nbsp;
				</display:column> 
				<display:column titleKey="机票实收款" property="allPrice" sortName="allPrice" class="tableinfo center">
				</display:column> 
				<display:column titleKey="支付方式"  class="tableinfo center">
				&nbsp;
				<c:if test="${bOrderItem.payChannel=='2'}">快钱</c:if>
				<c:if test="${bOrderItem.payChannel=='3'}">支付宝</c:if>
				<c:if test="${bOrderItem.payChannel=='4'}">财付通</c:if>
				<c:if test="${bOrderItem.payChannel=='5'}">汇付天下</c:if>
				<c:if test="${bOrderItem.payChannel=='6'}">中国银联</c:if>
				<c:if test="${bOrderItem.payChannel=='7'}">联动优势</c:if>
				</display:column>  				  
				 </display:table>	
</body>
</html>